package com.lysj.bhp.investment.repository;


import com.lysj.bhp.investment.domain.Dividend;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;


public interface DividendRepository extends JpaRepository<Dividend, Long> {

    Dividend findTopByOrderByDividentIdDesc();

    Dividend findByUserIdAndCreateTimeBetween(Long userId,Date date,Date date1);

    Dividend findByUserId(Long userId);

    List<Dividend> findByCreateTimeBetween(Date date, Date date1);
}
